/*
Kiwi Editor is a framework for building WYSIWYG web editors.
Copyright (C) 2011  Roosevelt de Lima Sardinha

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

Contact the author at roosevelt1@gmail.com (Roosevelt) 
*/

function includeJavaScript(url){
	document.write("<script type='text/javascript' src='" + url + "'>" + "</scr" + "ipt>");
}

// Constants
APP_HOME = '/javascripts/kiwi/';

// Inclusions from libraries
includeJavaScript(APP_HOME + 'lib/xmlhttprequest/XMLHttpRequest.src.js');
includeJavaScript(APP_HOME +'lib/jQuery-1.4.2/jquery-1.4.2.js');
includeJavaScript(APP_HOME +'lib/jQueryUI-1.8/development-bundle/ui/jquery.ui.core.js');
includeJavaScript(APP_HOME +'lib/jQueryUI-1.8/development-bundle/ui/jquery.ui.widget.js');
includeJavaScript(APP_HOME +'lib/jQueryUI-1.8/development-bundle/ui/jquery.ui.mouse.js');
includeJavaScript(APP_HOME +'lib/jQueryUI-1.8/development-bundle/ui/jquery.ui.resizable.js');
includeJavaScript(APP_HOME +'lib/jQueryUI-1.8/development-bundle/ui/jquery.ui.draggable.js');
includeJavaScript(APP_HOME +'lib/jQueryUI-1.8/development-bundle/ui/jquery.ui.droppable.js');
includeJavaScript(APP_HOME +'lib/jQueryUI-1.8/development-bundle/ui/jquery.ui.selectable.js');
includeJavaScript(APP_HOME +'lib/rootabs-1.2/rootabs.js');
includeJavaScript(APP_HOME +'lib/rootabs-1.2/tab.js');
includeJavaScript(APP_HOME +'lib/roomenus-1.0/roomenu.js');
includeJavaScript(APP_HOME +'lib/roomenus-1.0/menu.js');
includeJavaScript(APP_HOME +'lib/json2/json2.js');
includeJavaScript(APP_HOME +'lib/jscolor/jscolor.js');
includeJavaScript(APP_HOME +'lib/tinymce/tiny_mce_dev.js');
includeJavaScript(APP_HOME +'lib/ajaxfileupload1.0/ajaxfileupload.js');

// Kiwi inclusions
includeJavaScript(APP_HOME +'js/support/jstext.js');
includeJavaScript(APP_HOME +'js/instructionBox.js');
includeJavaScript(APP_HOME +'js/support/keyboard.js');
includeJavaScript(APP_HOME +'js/support/cursor.js');
includeJavaScript(APP_HOME +'js/support/table.js');
includeJavaScript(APP_HOME +'js/editionArea.js');
includeJavaScript(APP_HOME +'js/toolBox.js');
includeJavaScript(APP_HOME +'js/support/propertyInputs.js');
includeJavaScript(APP_HOME +'js/propertyBox.js');
includeJavaScript(APP_HOME +'js/support/request.js');
includeJavaScript(APP_HOME +'js/support/openDialog.js');
includeJavaScript(APP_HOME +'js/workspace.js');
includeJavaScript(APP_HOME +'js/workspaceManager.js');
includeJavaScript(APP_HOME +'js/profile.js');
includeJavaScript(APP_HOME +'js/profileManager.js');
includeJavaScript(APP_HOME +'js/editorObjectManager.js');
includeJavaScript(APP_HOME +'js/support/font.js');
includeJavaScript(APP_HOME +'js/EO.js');
includeJavaScript(APP_HOME +'js/editorDocument.js');
includeJavaScript(APP_HOME +'js/editorDocumentManager.js');
includeJavaScript(APP_HOME +'js/support/indenter.js');

// Demos

